import java.awt.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Scanner;

public class suijishu {
    public static void main(String[] args) {
        HashSet hashset = new HashSet();
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        while (scanner.hasNext()){
            int a = scanner.nextInt();
            hashset.add(a);
        }
        ArrayList list = new ArrayList();
        for (Object o : hashset) {
            list.add(o);
        }

        Collections.sort(list);

        for (Object o : list) {
            System.out.println(o);
        }

    }
}
